-- GENERATED SPELL FOR [Eck'alom] --


function spell0_10642(pUnit, Event) --@Freeze,n/a--
pUnit:FullCastSpellOnTarget(5276,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10642', 19000, 1)
end

function spell1_10642(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(21030,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10642', 8271, 1)
end

function Sorts_10642(pUnit, Event)
local choix_sorts_10642 = math.random(0, 1)
if choix_sorts_10642 == 0 then
pUnit:RegisterEvent('spell0_10642', 1, 1)
end
if choix_sorts_10642 == 1 then
pUnit:RegisterEvent('spell1_10642', 1, 1)
end
end

function mob10642_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10642', math.random(1500, 3000), 1)
end

function mob10642_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10642_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10642_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10642, 1, 'mob10642_Action')
RegisterUnitEvent(10642, 2, 'mob10642_Leave')
RegisterUnitEvent(10642, 3, 'mob10642_Kill')
RegisterUnitEvent(10642, 4, 'mob10642_Die')
